/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mycompany.sislic;


import com.mycompany.sislic.dominio.Giro;
import com.mycompany.sislic.repository.GiroDao;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import static org.junit.Assert.*;
/**
 *
 * @author HDP
 */
@ContextConfiguration(locations={"system-test-config.xml"})
@RunWith(SpringJUnit4ClassRunner.class)
public class Vamos {

    // TODO add test methods here.
    // The methods must be annotated with annotation @Test. For example:
    //
    @Autowired
    private GiroDao dao;
    //public TipoTramiteDao tipotramiteDao;

    @Test
    public void ProbarListadoTramites() {

        //List<Map<String,Object>> list = reporteDao.obtenerListaMenusParaReporte();
             // TipoTramite clsTipoTamite = new TipoTramite();
        //List<TipoTramite> lista = tipotramiteDao.obtenerTramites(clsTipoTamite);
        List<Giro> giros = dao.obtenerGiros(null);
        for (Giro giro : giros){
            assertNotNull(giro.getGrupo().getDescripcion());
        }

        //List<Receta> lista = recetaDao.obtenerListaRecetas(null);
//		//Receta receta = recetaDao.obtenerRecetaById(new Integer(1));
           
               // clsTipoTamite.setDescripcion("Prueba");
               // clsTipoTamite.setCodigo(10);


		//tipotramiteDao.guardarTipoTramite(clsTipoTamite);
//		recetaDao.actualizarReceta(receta);
//		System.out.println(receta);

//        System.out.println("LIST " + lista);
    }
}
